<?php
use think\Config;
?>
<!doctype html>
<html>

<head>
    <meta charset="utf-8">
    <title>
        <?php echo Config::get('appname');?>
    </title>
    <link href="/static/css/default.css" rel="stylesheet" type="text/css">
    <link href="/static/css/style/green.css" rel="stylesheet" type="text/css" id='link'>
    <style>
        html{overflow:hidden;}
</style>
</head>

<body>
    <div class="classify">{$parenttitle}</div>
    <!--toolbar start-->

    <form>
        <table class="formtable">

            <tbody>

                <tr>
                    <td class="tlabel">机构名称</td>
                    <td colspan="3">{$mm.name}</td>
                </tr>
                <tr>
                    <td class="tlabel">到期时间</td>
                    <td colspan="3">{$mm.endtime}</td>
                </tr>
                <tr>
                    <td class="tlabel">余额</td>
                    <td colspan="3">{$mm.mymoney}</td>
                </tr>

              

                <tr>
                    <td class="tlabel">每天签到次数</td>
                    <td><input type="text" class="forminput inputstyle" id="signnum" value="{$info.signnum}"></td>
                    <td class="tlabel"></td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td class="tlabel">签到时间间隔(小时)</td>
                    <td><input type="text" class="forminput inputstyle" id="signjgtime" value="{$info.signjgtime}"></td>
                    <td class="tlabel"></td>
                    <td>
                    </td>
                </tr>



            </tbody>

        </table>

        <div class="formbtn">
            <input type="button" value="保存" class="btnsave">
            <input type="button" value="重置" class="btncancel">
        </div>

    </form>

</body>
<script type="text/javascript" src="/static/js/jquery.js"></script>
<script type="text/javascript" src="/static/js/common.js"></script>
<script type="text/javascript" src="/static/js/skin.js"></script>
<script src="/static/js/layer/layer.js"></script>
<script>
    $(function () {
        $(".btnsave").click(function () {
          
            var signnum = $("#signnum").val();
            var signjgtime = $("#signjgtime").val();

            $.post("/Index/home/config", { signnum: signnum,signjgtime:signjgtime }, function (data) {
                layer.msg(data.message);
                setTimeout(function () {
                    location.reload();
                }, 1000);

            });

        });

    });
</script>

</html>